Class IoEComponentImpl

All Implemented Interfaces:
IPCObject, IoEComponent, Port, Process
Direct Known Subclasses:
CustomIOImpl

public class IoEComponentImpl extends PortImpl implements IoEComponent
Information provided by the PKI file:

    \class IoEComponent
    
    \brief IoEComponent holds and manipulates the IoEComponent on IoE devices.
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getSlotName

      public String getSlotName()
      Information provided by the PKI file:
      
          \brief Returns the name of the slot.
          
          \return string, the name of the slot.
          
              
      Specified by:
      getSlotName in interface IoEComponent
      Returns:
      String Returns a String
    • getSlotNumber

      public int getSlotNumber()
      Information provided by the PKI file:
      
          \brief Returns the number of the slot.
          
          \return int, the number of the slot.
          
              
      Specified by:
      getSlotNumber in interface IoEComponent
      Returns:
      int Returns a int
    • getComponentType

      public String getComponentType()
      Information provided by the PKI file:
      
          \brief Returns the type of the component.
          
          \return string, type of the component.
          
              
      Specified by:
      getComponentType in interface IoEComponent
      Returns:
      String Returns a String
    • setIsOutputMode

      public void setIsOutputMode(boolean isOutput)
      Information provided by the PKI file:
      
          \brief set the flag of slot is using output mode or not.
          
          \param isOutput, true if slot is using output mode, false otherwise.
          
              
      Specified by:
      setIsOutputMode in interface IoEComponent
      Parameters:
      isOutput - Takes in a parameter of isOutput
    • isOutputMode

      public boolean isOutputMode()
      Information provided by the PKI file:
      
          \brief Returns true if the slot is using output mode, otherwise false.
          
          \return bool, true if the slot is using output mode, otherwise false.
          
              
      Specified by:
      isOutputMode in interface IoEComponent
      Returns:
      boolean Returns a boolean
    • isInputMode

      public boolean isInputMode()
      Information provided by the PKI file:
      
          \brief Returns true if the slot is using input mode, otherwise false.
          
          \return bool, true if the slot is using input mode, otherwise false.
          
              
      Specified by:
      isInputMode in interface IoEComponent
      Returns:
      boolean Returns a boolean
    • digitalWrite

      public void digitalWrite(int value)
      Information provided by the PKI file:
      
          \brief digital write a value to the slot.
          
          \param value, the value to write to the slot.
          
              
      Specified by:
      digitalWrite in interface IoEComponent
      Parameters:
      value - Takes in a parameter of value
    • digitalRead

      public int digitalRead()
      Information provided by the PKI file:
      
          \brief Returns int digital read from the slot.
          
          \return bool, int digital read from the slot.
          
              
      Specified by:
      digitalRead in interface IoEComponent
      Returns:
      int Returns a int
    • analogWrite

      public void analogWrite(int value)
      Information provided by the PKI file:
      
          \brief analog write a value to the slot.
          
          \param value, the value to write to the slot.
          
              
      Specified by:
      analogWrite in interface IoEComponent
      Parameters:
      value - Takes in a parameter of value
    • analogRead

      public int analogRead()
      Information provided by the PKI file:
      
          \brief Returns int analog read from the slot.
          
          \return bool, int analog read from the slot.
          
              
      Specified by:
      analogRead in interface IoEComponent
      Returns:
      int Returns a int
    • customWrite

      public void customWrite(String value)
      Information provided by the PKI file:
      
          \brief custom write a string to the slot.
          
          \param value, the string to write to the slot.
          
              
      Specified by:
      customWrite in interface IoEComponent
      Parameters:
      value - Takes in a parameter of value
    • customRead

      public String customRead()
      Information provided by the PKI file:
      
          \brief Returns the string custom read from the slot.
          
          \return string, the string custom read from the slot.
          
              
      Specified by:
      customRead in interface IoEComponent
      Returns:
      String Returns a String